﻿app.factory('pictureFactory', function ($http) {
    var factory = {};
    factory.getPictureByLesson = function (id) {
        return $http.get(getPictureApiAddress + id);
    };
    factory.postPicture = function (data) {
        return $http.post(postPictureApiAddress,data);
    };
    factory.delPicture = function (id) {
        return $http.post(delPictureApiAddress + id);
    };
    return factory;
});